package com.alex.space.commons.tree;

import lombok.Builder;
import lombok.Data;

/**
 * @author Alex
 * Created by Alex on 2018/3/13.
 */
@Builder
@Data
public class TreeNode implements IEntity<Integer> {

	int data;

	TreeNode left;

	TreeNode right;

	@Override
	public IEntity<Integer> left() {
		return left;
	}

	@Override
	public IEntity<Integer> right() {
		return right;
	}

	@Override
	public Integer data() {
		return data;
	}
}